<?php
/**
 * <pre>
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT      : rubik-base
 * COPYRIGHT    : 2008
 * ------------------------------------------------------
 * 
 * [GENERAL INFO OF THIS FILE] 
 *
 * </pre>
 * 
 * @version 		1.0
 * @author			Dang Nhon Hoa <hoadn@rubik.com.vn>
 * @access			public
 * @package			rubik.base.html
 *
 * Created on	: May 25, 2008
 */
RCoreImporter::cls('html.AbstractHtmlControl');

class AbstractHtmlUserControl extends AbstractHtmlControl {
	
	var $_ctrlName;
	
	function __construct($ctrlName = 'userCtrl') {
		$clsFile = AbstractRubikImporter::getFilePathOfClass(get_class($this));
		$this->_folder = dirname($clsFile).DS;
	}
	
	/**
	 * Import a class from control folder
	 *
	 * @param string $clsPath ex: 'model.UserCtrlModel'
	 */
	function importCls($clsPath) {
		$clsFile = $this->_folder. str_replace('.', DS, $clsPath) . '.class.php';
		AbstractRubikImporter::checkAndInclude($clsFile);
	}
	
	/**
	 * Create the html
	 *
	 * @abstract 
	 * @param array/object $params
	 */
	function createHtml($params = null) {
		RubikHelper::printDebugCallStack();
		die('Please implement this function.');
	}
}
?>